<?php

include_once("config.php");

$operation = $_GET['operation'];
$title = strtoupper($operation);	

echo '<chart manageResize="1" origW="300" origH="300" bgColor="406181, 6DA5DB" upperLimit="100" lowerLimit="0" baseFontColor="FFFFFF" majorTMNumber="11" majorTMColor="FFFFFF" majorTMHeight="8" minorTMNumber="5" minorTMColor="FFFFFF" minorTMHeight="3" toolTipBorderColor="FFFFFF" toolTipBgColor="333333" gaugeOuterRadius="100" gaugeStartAngle="225" gaugeEndAngle="-45" placeValuesInside="1" gaugeInnerRadius="80%" annRenderDelay="0" gaugeFillMix="" pivotRadius="10" showPivotBorder="0" pivotFillMix="{CCCCCC},{333333}" pivotFillRatio="50,50" showShadow="0" gaugeOriginX="150" gaugeOriginY="150" dataStreamURL="../chart/sysadmin_action.php?operation='.$operation.'" refreshInterval="'.$refreshInterval.'">';

echo <<<EOT

	<colorRange>
		<color minValue="0" maxValue="50" code="C1E1C1" alpha="40"/>
		<color minValue="50" maxValue="85" code="F6F164" alpha="40"/>
		<color minValue="85" maxValue="100" code="F70118" alpha="40"/>
	</colorRange>
	<dials>
		<dial value="0" borderColor="FFFFFF" bgColor="000000,CCCCCC,000000" borderAlpha="0" baseWidth="10"/>
	</dials>
	<annotations>
		<annotationGroup x="150" y="150" showBelow="1">
			<annotation type="circle" x="0" y="0" radius="145" fillColor="CCCCCC,111111"  fillPattern="linear" fillAlpha="100,100"  fillRatio="50,50" fillAngle="-45"/>
			<annotation type="circle" x="0" y="0" radius="120"  fillColor="111111,cccccc"  fillPattern="linear" fillAlpha="100,100"  fillRatio="50,50" fillAngle="-45"/>
			<annotation type="circle" x="0" y="0" radius="110"  color="666666"/>
		</annotationGroup>
	</annotations>
</chart>

EOT;

?>